package com.xxzuibang.day2;

public class Demo10 {
    public static void main(String[] args) {

        System.out.println("x,y的和为："+add(100,200));
        System.out.println("x,y的差为："+sub(100, 200));
        System.out.println("x,y的积为："+mul(1, 20000));
        System.out.println("x,y的商为："+div(1, 16));
        System.out.println("x,y的余数为："+remain(100, 200));
    }

    public static int remain(int x, int y) {
        return  x%y;
    }

    private static int div(int x, int y) {
        return x/y;
    }

    private static int mul(int x, int y) {
        return x*y;
    }

    private static int  sub(int x,int y) {
        return x-y;
    }

    private static int  add(int x,int y) {
        return x+y;
    }
}
